package com.iot.util;

import java.util.Date;

public class MrecJG {
    private String  DValue; //数据值
    private String EventName;//设备是否正常
    private String NodeName;//设备名称
    private String NodeOid;//IMEI
    private Date UpdateTime;

    public String getDValue() {
        return DValue;
    }

    public void setDValue(String DValue) {
        this.DValue = DValue;
    }

    public String getEventName() {
        return EventName;
    }

    public void setEventName(String eventName) {
        EventName = eventName;
    }

    public String getNodeName() {
        return NodeName;
    }

    public void setNodeName(String nodeName) {
        NodeName = nodeName;
    }

    public String getNodeOid() {
        return NodeOid;
    }

    public void setNodeOid(String nodeOid) {
        NodeOid = nodeOid;
    }

    public Date getUpdateTime() {
        return UpdateTime;
    }

    public void setUpdateTime(String updateTime) {
        //处理日期格式为"/Date(1536435315000)/"
        String str=updateTime.substring(6,updateTime.length()-2);
        String date= Common.timeStamp2Date(str,"yyyy-MM-dd HH:mm:ss");
        Date tempDate=Common.toLongDate(date);
        UpdateTime = tempDate;
    }
}
